<!--
 * @Author       : BigDgreen
 * @Date         : 2020-07-11 23:08:36
 * @LastEditors  : BigDgreen
 * @LastEditTime : 2020-08-01 16:11:03
 * @FilePath     : \前端知识点总结\面试\HTML&CSS\index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            height: 100px;
            background: black;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <script>
        window.onload = function () {
            sessionStorage.setItem("test", 13431);
            console.log(sessionStorage.getItem("test"));
        }

    </script>
</body>

</html>